﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GPM
{
    public partial class UCProgress : UserControl
    {
        public UCProgress()
        {
            InitializeComponent();
        }

        [Browsable(true), Category("框架属性"), MergableProperty(false), DefaultValue(100)]
        public int Maximum
        {
            get { return progressBarControl1.Properties.Maximum; }
            set { progressBarControl1.Properties.Maximum = value; }
        }

        [Browsable(true), Category("框架属性"), MergableProperty(false), DefaultValue(0)]
        public int Minmum
        {
            get { return progressBarControl1.Properties.Minimum; }
            set { progressBarControl1.Properties.Minimum = value; }
        }

        [Browsable(true), Category("框架属性"), MergableProperty(false), DefaultValue(1)]
        public int Step
        {
            get { return progressBarControl1.Properties.Step; }
            set { progressBarControl1.Properties.Step = value; }
        }

        public void ProgressPerForm()
        {
            progressBarControl1.PerformStep();
            progressBarControl1.Update();
        }
    }
}
